package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.CommentReply;
import cn.wolfcode.trip.base.query.CommentReplyQueryObj;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentReplyMapper {
    int insert(CommentReply record);

    List<CommentReply> selectAll();

    Integer selectForCountByUserId(Long userId);

    List<CommentReply> selectByStrategyCommentId(CommentReplyQueryObj qo);

    int selectCountByStrategyCommentId(CommentReplyQueryObj qo);

    List<CommentReply> selectRepilersInfo(CommentReplyQueryObj qo);

    void updateState(@Param("state") int state,@Param("userId") Long userId);

    void updateLikeNum(Long id);

}